pre increment in c program Get link Facebook X Pinterest Email Other Apps September 18, 2022 #include <stdio.h>#include <stdlib.h>int main(){ int a=10,b=1000; a=++a;b=++b; printf("value a:%d,b :%d",a,b); return 0;} Get link Facebook X Pinterest Email Other Apps Comments
GRADE MARK IN C PROGARAM September 16, 2022 #include <stdio.h> #include <stdlib.h> int main() { float a; printf("enter mark !\n"); scanf("%f",&a); if(a>=90) { printf("A");} else if(a>=80 &&a<=89) { printf("B"); } else if(a>=70 &&a<=79){ printf("C"); } else if (a>=60 &&a<=69){ printf("d"); }else if (a>=50&&a<= 59){ printf("e"); } else { printf("faild"); ... Read more
C PROGRAM - IF STATEMENT September 15, 2022 IF STATEMENT #include <stdio.h> #include <stdlib.h> int main() { int num; printf("enter a number!\n"); scanf("%d",&num); if(num>5) { printf("number is possitive"); }else { printf("number is negative"); } return 0; } OUT PUT Read more
switch c program September 18, 2022 #include <stdio.h> #include <stdlib.h> int main() { int a; printf("1monday!\n2sunday \n3tusdey\n4wensdey \n5friday"); scanf("%d",&a); switch(a) { case 1: printf("monday"); break; case 2: printf("sunday"); break; case 3: printf("thusday"); break; case 4: printf("wensday"); break; case 5: printf("friday"); break; default: printf("fool"); } return 0; } Read more
Comments
Post a Comment