Hello World Day 1 ( C PROGRAMMING ) Get link Facebook X Pinterest Email Other Apps June 04, 2023 #include <stdio.h>int main() { printf ("Hello World"); 0;} Get link Facebook X Pinterest Email Other Apps Comments
day 2 ( C PROGRAMMING ) June 10, 2023 Output #include <stdio.h> int main () { int age = 22 ; printf ( " age is %d \n " ,age); char star = '*' ; printf ( "star look like this %c \n " ,star); float pi = 3.14 ; printf ( "value of pi %f \n " ,pi); return 0 ; } Read more
Conditional Statements (C Programming) July 12, 2023 Conditional Statements : 1: If Else eg: Conditional Operator : Ternary : eg Switch : eg #include <stdio.h> int main () { int day ; // 1- mon ; 2- tues ; 3 wed printf ( "enter day(1-7) : " ) ; scanf ( "%d" , & day) ; switch (day) { case 1 : printf ( "monday \n " ); break ; case 2 : printf ( "tuesday \n " ); break ; case 3 : printf ( "wednesday \n " ) ; break ; case 4 : printf ( "thrusday \n " ) ; break ; case 5 : printf ( "friday \n " ); break ; case 6 : printf ( "saturday \n " ) ; break ; case 7 : printf ( "sunday \n " ); break ; default : printf ( "not a valid day \n " ) ; } return 0 ; } eg : #include <stdio.h> int main () { int number; printf ( "entar a number :" ); s... Read more
Loop Control Statements (C Programming) August 03, 2023 * Loop Control Statements :- 1. For Loop Read more
Comments
Post a Comment