Skip to content

Instantly share code, notes, and snippets.

View sagardere's full-sized avatar
🎯
Focusing

Dere Sagar sagardere

🎯
Focusing
View GitHub Profile
#include<stdio.h>
void main()
{
int rows,starNo,spaceNo;
printf("Enter Rows:\n");
scanf("%d",&rows);
for(int i=1;i<=rows;i++)
{
#include <stdio.h>
void main()
{
int i,j,askey;
printf("\n\nPrint the 3*3 matrix from i to j\n");
printf("---------------------------------\n");
askey=105;
#include<stdio.h>
//#include<conio.h>
int main( )
{
int r,c,askey,sp,num;
printf("\n\n\tC PROGRAM TO PRINT REVERSE PYRAMID OF ALPHABETS \n");
printf("\nEnter the number of rows you want to show in your reverse pyramid : ");
scanf("%d",&num);
printf("\n\n\n");
for( r=num; r>=1; r-- )
I/P: How many rows: 5
O/P:
@ 1 1 1 1
2 @ 2 2 2
3 3 @ 3 3
4 4 4 @ 4
5 5 5 5 @
//Logic
#include <stdio.h>
var async = require('async')
async function f() {
let promise = new Promise((resolve, reject) => {
setTimeout(() => resolve("done!"), 1000)
});
let result = await promise; // wait till the promise resolves (*)